package com.cryptoneedle.center.ods.controller;

import com.bubbles.engine.common.core.result.Result;
import com.cryptoneedle.center.ods.service.OdsMappingService;
import com.cryptoneedle.center.ods.vo.BindMappingTableVo;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>description: ODS 控制器 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-26
 */
@Tag(name = "Ods", description = "Ods")
@RestController
@RequestMapping("/ods")
public class OdsCenterController {

    @Resource
    private OdsMappingService odsMappingService;

    @PostMapping("/bindMappingTable")
    public Result<?> bindMappingTable(@RequestBody BindMappingTableVo bindMappingTableVo) {
        odsMappingService.bindMappingTable(bindMappingTableVo);
        return Result.success();
    }
}